//
//  WoDeTableViewCell.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/7.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "WoDeTableViewCell.h"

@implementation WoDeTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _imgView=[[UIImageView alloc]initWithFrame:CGRectMake(15, 15, 30, 20)];
        _imgView.contentMode=UIViewContentModeScaleAspectFit;
        [self.contentView addSubview:_imgView];
        self.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
        _lab=[[UILabel alloc]initWithFrame:CGRectMake(70, 18, 200, 13)];
        _lab.font=[UIFont systemFontOfSize:14];
        [self.contentView addSubview:_lab];
        
    }
    return self;
}
#pragma mark - 绘制Cell分割线
- (void)drawRect:(CGRect)rect {
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor);
    CGContextFillRect(context, rect);
    
    
    //下分割线
    CGContextSetStrokeColorWithColor(context, [UIColor colorWithRed:198/255.0 green:198/255.0 blue:198/255.0 alpha:1].CGColor);
    CGContextStrokeRect(context, CGRectMake(0, rect.size.height, rect.size.width, 0));
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
